package com.hwl.demo13.service.impl;

import com.hwl.demo13.service.Player;

/**
 * 前锋
 *
 * @author sentry
 * @since 2023-03-21
 */
public class Forwards extends Player {
    public Forwards(String name) {
        super(name);
    }

    @Override
    public void attack() {
        System.out.println("前锋" + this.name + "进攻");
    }

    @Override
    public void defense() {
        System.out.println("前锋" + this.name + "防守");
    }
}
